#ifndef WMSMAPADAPTER_H
#define WMSMAPADAPTER_H

#include "mapadapter.h"

class WMSMapAdapter : public MapAdapter
{
public:

    WMSMapAdapter(QString host, QString serverPath, int tilesize = 256);
    virtual ~WMSMapAdapter();

    virtual QPoint coordinateToDisplay(const QPointF&) const;
    virtual QPointF displayToCoordinate(const QPoint&) const;

protected:
    virtual void zoom_in();
    virtual void zoom_out();
    virtual QString query(int x, int y, int z) const;
    virtual bool isValid(int x, int y, int z) const;

private:
    virtual QString getQ(qreal ux, qreal uy, qreal ox, qreal oy) const;

    qreal coord_per_x_tile;
    qreal coord_per_y_tile;
};

#endif
